package com.mzkj.wanjulaile.mobile.api.modules.weChat.entity;


import com.mzkj.wanjulaile.mobile.api.modules.account.entity.Account;

import java.io.Serializable;

/**
 * 微信返回用户信息
 * Created by wangxw on 2016/10/25.
 */
public class UserInfo implements Serializable {
    private UserInfoWX userInfoWX;
    private Account account;
    private WxJsParam wxJsParam;

    public UserInfo() {
    }

    public UserInfo(UserInfoWX userInfoWX, Account account) {
        this.userInfoWX = userInfoWX;
        this.account = account;
    }

    public UserInfo(UserInfoWX userInfoWX, Account account,WxJsParam wxJsParam) {
        this.userInfoWX = userInfoWX;
        this.account = account;
        this.wxJsParam = wxJsParam;
    }

    public UserInfoWX getUserInfoWX() {
        return userInfoWX;
    }

    public void setUserInfoWX(UserInfoWX userInfoWX) {
        this.userInfoWX = userInfoWX;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        account.setPassword(null);
        this.account = account;
    }

    public WxJsParam getWxJsParam() {
        return wxJsParam;
    }

    public void setWxJsParam(WxJsParam wxJsParam) {
        this.wxJsParam = wxJsParam;
    }
}
